#ifndef _AnalyzerFactory_H_
#define _AnalyzerFactory_H_
#include <iostream>
#include <string>
#include "TemplateAnalyzer.h"
#include "IEC104Analyzer.h"
using namespace std;
class AnalyzerFactory{
public:
	TemplateAnalyzer* create_analyzer(const string &protocol_name,unsigned char *data,int ret);

};
TemplateAnalyzer* AnalyzerFactory:: create_analyzer(const string &protocol_name,unsigned char *data,int ret)
{
	TemplateAnalyzer *analyzer;
	if(protocol_name=="IEC104")
		analyzer=new IEC104Analyzer(data,ret);
	return analyzer;
}
#endif